package com.zhiyi.coco.controller;

import com.zhiyi.coco.entity.SysLoginInfo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(value = "SwaggerController", description = "swagger示例")
@RestController
@RequestMapping("/swagger")
//http://localhost:8080/swagger-ui.html
public class SwaggerController {
    @ApiOperation("获取app信息的方法")
    @RequestMapping("/get")
    public SysLoginInfo getApp() {
        return new SysLoginInfo();
    }

    @ApiOperation("添加app信息的方法")
    @PostMapping("/add")
    public Boolean add(@RequestBody(required = false) @ApiParam("app信息") SysLoginInfo loginInfo) {
        return false;
    }
}
